package com.food.eat.controller;

import com.food.eat.pojo.Users;

import java.security.SecureRandom;
import java.util.HashMap;
import java.util.Map;

/**
 * @Author RenPu
 * @Date 2022/4/14 10:49
 * @Version 1.0
 * @Description:
 **/
public class Math {

    public static int initData = 666;

    public static Users users = new Users();


    public int complate() {

        Map<String, String> map = new HashMap<>();
        System.out.println(map.getOrDefault("111", null));
        int a = 1;
        int b = 2;
        int c = (a + b) * 10;
        return c;
    }
//
//    public static void main(String[] args) {
//        Math math = new Math();
//        int complate = math.complate();
//        System.out.println(complate);
//    }


    public static void main(String[] args) {

        new SecureRandom().nextInt(10);

        Map<String, String> map = new HashMap<>();
        map.put("111", "我是誰");

        if (map.containsKey("8888")) {
            System.out.println(map.getOrDefault("111", null));

        } else {
            System.out.println("ouoiuoi");
        }


    }


}
